#ifndef LABEL_IMG_DESIGN_VIEW_H
#define LABEL_IMG_DESIGN_VIEW_H

#include <QWidget>
#include "label_img_header.h"
class QPrinter;
class label_img_design_view;
class label_img_design_view_obj
{
public:
    explicit label_img_design_view_obj();
    ~label_img_design_view_obj();

    void printFirst();
    void printAll();

    QPixmap pixmapFirst();
    void setTable(const label_img_header::LabelTable &table);
    const label_img_header::LabelTable &curTable();

    void left(int id);
    void right(int id);
    void top(int id);
    void bottom(int id);
    void scale(int id, int op);
public:
    int count();
    void setIndex(int k);
    void print();
    void repaintPix();
public:
    int label_queue_index;
    label_img_header::LabelTable table;
    int off;
    QPrinter *printer;
    QPixmap _pix;
    label_img_design_view *view;
};


class label_img_design_view :  public QWidget,  public label_img_design_view_obj
{
    Q_OBJECT
public:
    explicit label_img_design_view(QWidget *parent = 0);
    ~label_img_design_view();

protected:
    void paintEvent(QPaintEvent */*event*/);
};


#endif // LABEL_IMG_DESIGN_VIEW_H
